package com.lovo.market.common.exception;

import com.lovo.market.common.enums.CodeEnum;
import lombok.Getter;

/**
 * @author MirAi
 * @description 自定义异常
 * @date 2020/12/15 17:12
 */
@Getter
public class ExpectedException extends RuntimeException {

    /** 用户状态枚举 */
    private CodeEnum codeEnum;

    public ExpectedException(CodeEnum codeEnum) {
        this.codeEnum = codeEnum;
    }
}
